<!DOCTYPE html>
<html class="x-admin-sm">

{include file="common/static" /}
{include file="common/resources" /}
    <body>
        <div class="x-nav">
            <span class="layui-breadcrumb">
                <a href="">首页</a>
                <a>
                    <cite>入住记录</cite>
                </a>
            </span>
            <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
                <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i>
            </a>
        </div>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body ">
                            <form class="layui-form layui-col-space5">
                                <div class="layui-input-inline layui-show-xs-block">
                                    <input class="layui-input" placeholder="开始日" name="start" id="start"></div>
                                <div class="layui-input-inline layui-show-xs-block">
                                    <input class="layui-input" placeholder="截止日" name="end" id="end"></div>
                                <div class="layui-input-inline layui-show-xs-block">
                                    <select name="status">
                                        <option value="">全部</option>
                                        <option value="1">在住</option>
                                        <option value="2">离店</option>
                                    </select>
                                </div>

                                <div class="layui-input-inline layui-show-xs-block">
                                    <button class="layui-btn" lay-submit="" lay-filter="sreach">
                                        <i class="layui-icon">&#xe615;</i></button>
                                </div>
                            </form>
                        </div>

                        <div class="layui-card-body ">
                            <table class="layui-table layui-form">
                                <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>房间号</th>
                                        <th>房间数量</th>
                                        <th>收入明细</th>
                                        <th>定金记录</th>
                                        <th>活动折扣</th>
                                        <th>会员折扣</th>
                                        <th>下单时间</th>
                                        <th>入住情况</th>
                                        <th>应收价格</th>
                                        <th>操作者</th>
                                    </tr>
                                </thead>
                                <tbody>
                                {volist name="list" id="vo"}
                                    <tr>
                                        <td>
                                            <img src="/static/ico/id.png"/>
                                            {$vo.id}
                                        </td>
                                        <td>
                                            <img src="/static/ico/room_num.png"/>
                                            {$vo.num_arr}
                                        </td>
                                        <td>
                                            <img src="/static/ico/number.png"/>
                                            {$vo.count}
                                        </td>
                                        <td><img src="/static/ico/price.png"/>{$vo.income_details}</td>
                                        <td><img src="/static/ico/price.png"/>{$vo.deposit_record}</td>
                                        <td>{$vo.activity_price}<img src="/static/ico/discount.png"/></td>
                                        <td>{$vo.member_price}<img src="/static/ico/discount.png"/></td>
                                        <td><img src="/static/ico/time.png"/>{:date('Y-m-d H:m:s',$vo.create_time);}</td>
                                        <td><img src="/static/ico/status.png"/>{$vo.status}</td>
                                        <td><img src="/static/ico/price.png"/>{$vo.price_receivable}</td>
                                        <td><img src="/static/ico/operator.png"/>{$vo.username}</td>
<!--                                        <td class="td-manage">
                                            <a title="查看" onclick="xadmin.open('编辑','order-view.html')" href="javascript:;">
                                                <i class="layui-icon">&#xe63c;</i></a>
                                            <a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">
                                                <i class="layui-icon">&#xe640;</i></a>
                                        </td>-->
                                    </tr>
                                {/volist}
                                </tbody>
                            </table>
                            {$list|raw}
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </body>

<script>
    layui.use(['laydate', 'form'],
        function() {
            var laydate = layui.laydate;
            //执行一个laydate实例
            laydate.render({
                elem: '#start' //指定元素
                ,value: new Date()
            });
            //执行一个laydate实例
            laydate.render({
                elem: '#end' //指定元素
                ,value: new Date(new Date().getTime() + 24*60*60*1000)
            });
        });

</script>


</html>